package com.easylinkin.linkappapi.safe.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.safe.entity.DangerousProcess;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * DangerousProcess表数据库访问层
 *
 * @author zhengwen
 * @date 2022/08/16
 */
public interface DangerousProcessMapper extends BaseMapper<DangerousProcess> {


    /**
     * 查询分页
     *
     * @param page        分页参数对象
     * @param appDangerousProcess 过滤参数对象
     * @return 查询分页结果
     */
    IPage<DangerousProcess> selectPage(Page page, @Param("appDangerousProcess") DangerousProcess appDangerousProcess);

    /**
     * 查询单条
     *
     * @param id 主键id
     * @return 查询结果
     */
    DangerousProcess getOneById(@Param("id") Serializable id);

    /**
     *
     * @param dangerousInfoId
     * @return
     */
    List<DangerousProcess> selectProcessListByDangerousId(Long dangerousInfoId);
}

